<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
    pageContext.setAttribute("basePath",basePath);
    String bankRequestType =request.getAttribute("bankRequestType").toString();
    String queryPath = "";
    if(bankRequestType.equals("0")){
        queryPath = basePath+"/bank/bankOrderRequest";
    }else{
        queryPath = basePath+"/bank/cardOrderRequest";
    }
    pageContext.setAttribute("queryPath",queryPath);
%>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>银行调单系统</title>
    <%@include file="/common/header.jsp"%>
    <script type="text/javascript">
        queryPath ='${queryPath}';
        bankRequestType ='${bankRequestType}';
    </script>
    <script type="text/javascript" src="${basePath}/js/bankorder/requestList.js"></script>
</head>
<body >
<div style="background-color: #ecf0f5">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="fq-tit-h1">
            <div class="fq-tit-box  clearfix">
                <i class="fa fa-bank iconBg fl"></i>
                <div class="fl">
                    <h2 class="">银行查询</h2>
                    <small>Bank inquiry</small>
                </div>
            </div>
        </div>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title ">
                    银行订单号查询
                </h3>
            </div>
            <div class="box-body">
                <div class="w-check-condition-area clearfix">
                    <div class="w-check-condition">
                        <ul class="check-condition-ul">
                            <li class="check-condition-li clearfix">
                                <div class="kv-box clearfix">
                                    <div class="key">
                                       <span class="bankRequestTypeCls"> 银行订单号</span>
                                    </div>
                                    <div class="val">
                                        <input type="text" class="form-control input-sm w-l-input" name="bankRequestNo" id="bankRequestNo"/>
                                    </div>
                                </div>

                                <div class="kv-box center-kv-box clearfix">
                                    <div class="key">
                                        查询类型
                                    </div>
                                    <div class="val">
                                        <select cube-type="select" class="cu-select cu-select-xl w-sp" name="requestType" id="requestType">
                                            <option value="" >选择</option>
                                            <option value="0" >查询</option>
                                            <option value="1">拒付</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="kv-box clearfix">
                                    <div class="key">
                                        紧急状态
                                    </div>
                                    <div class="val">
                                        <select cube-type="select" class="cu-select cu-select-xl w-sp" name="emergencyState" id="emergencyState">
                                            <option value="" >选择</option>
                                            <option value="0" >普通</option>
                                            <option value="1">紧急</option>
                                        </select>
                                    </div>
                                </div>
                            </li>
                            <li class="check-condition-li clearfix">
                                <div class="kv-box clearfix">
                                    <div class="key">
                                        是否拦截
                                    </div>
                                    <div class="val">
                                        <select cube-type="select" class="cu-select cu-select-xl w-sp" name="interceptState" id="interceptState">
                                            <option value="" >选择</option>
                                            <option value="1" >是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="kv-box clearfix">
                                    <div class="key">
                                        回复状态
                                    </div>
                                    <div class="val">
                                        <select cube-type="select" class="cu-select cu-select-xl w-sp" name="bankRequestState" id="bankRequestState">
                                            <option value="" >选择</option>
                                            <option value="1" >是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="kv-box center-kv-box clearfix">
                                    <div class="key">
                                        银行附件
                                    </div>
                                    <div class="val">
                                        <select cube-type="select" class="cu-select cu-select-xl w-sp" name="bankAttachCount" id="bankAttachCount">
                                            <option value="" >选择</option>
                                            <option value="1" >是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </div>
                                </div>


                            </li>
                            <li class="check-condition-li clearfix">
                                <div class="kv-box clearfix">
                                    <div class="key">
                                        京东附件
                                    </div>
                                    <div class="val">
                                        <select cube-type="select" class="cu-select cu-select-xl w-sp" name="jdAttachCount" id="jdAttachCount">
                                            <option value="" >选择</option>
                                            <option value="1" >是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="kv-box clearfix">
                                    <div class="key">
                                        交易时间
                                    </div>
                                    <div class="val">
                                        <div class="input-group clearfix">
                                            <div class="input-group-addon">
                                                <i class="fa fa-calendar"></i>
                                            </div>
                                            <input type="text" class="form-control h38" placeholder="交易时间" id="tradeRange">
                                        </div>
                                    </div>
                                </div>

                                <div class="kv-box center-kv-box clearfix">
                                    <div class="key">
                                        发送时间
                                    </div>
                                    <div class="val">
                                        <div class="input-group clearfix">
                                            <div class="input-group-addon">
                                                <i class="fa fa-calendar"></i>
                                            </div>
                                            <input type="text" class="form-control h38" placeholder="发送时间" id="sendRange">
                                        </div>
                                    </div>
                                </div>
                            </li>
                        </ul>

                        <div class="w-gofor-check">
                            <a href="javascript:void(0)" class="check-btn" id="queryBtn">查询</a>
                            <a href="javascript:void(0)" class="re-btn ml10" id="resetBtn">重置</a>
                        </div>
                    </div>
                    <div class="other-add-area">
                        <ul>
                            <li>
                                <a href="#" class="btn btn-block btn-info" onclick="addBankOrderReq()">单个新增</a>
                            </li>
                            <li>
                                <a href="#" class="btn btn-block btn-success" onclick="batchBankOrderReq()">批量新增</a>
                            </li>
                        </ul>
                    </div>
                </div>

            </div>
            <!-- /.box-body -->
        </div>


        <!-- Default box -->
        <div class="box">


            <div class="box-header with-border">
                <h3 class="box-title ">
                    查询结果
                </h3>
            </div>
            <div class="box-body">
                <div class="export-area">
                    <a href="javascript:void(0);" class="check-btn" id="exportBtn" >批量导出</a>
                    <a href="javascript:void(0);" class="check-btn" id="sendBtn">批量发送</a>
                    <a href="javascript:void(0);" class="check-btn "  id="delBtn">删除</a>
                </div>
                <div class="table-area">
                <table id="grid" cellspacing="0" width="100%" class="table-bordered">
                    <thead>
                    <tr>
                        <th  width="5%"> </th>
                        <th  width="10%">序列号</th>
                        <th  width="10%">查询类型</th>
                        <th  width="10%" class ="bankRequestTypeCls">银行订单号</th>
                        <th  width="10%">交易时间</th>
                        <th width="10%">交易金额</th>
                        <th  width="10%">是否拦截</th>
                        <th  width="10%">紧急状态</th>
                        <th width="10%" >银行附件</th>
                        <th width="10%" >京东附件</th>
                        <th width="10%">回复状态</th>
                        <th  width="10%">发送时间</th>
                        <th  width="10%">操作</th>
                    </tr>
                    </thead>
                </table>
                </div>
            </div>
        </div>
        <!-- /.box -->
    </section>


    <!-- /.content -->
</div>

</body>
</html>
